﻿using BCVP.Net8.IService;
using BCVP.Net8.Model;
using BCVP.Net8.Repository;

namespace BCVP.Net8.Service
{
  public class UserService : IUserService
  {
    public async Task<List<UserVo>> Query()
    {
      var userRepo = new UserRepository();
      var users= await userRepo.Query();

      return users.Select(u => new UserVo { UserName=u.Name}).ToList();
    }
  }
}
